<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
<%@ include file="/WEB-INF/jsp/public/commons.jspf"%>
<title>单据详情</title>
<script type="text/javascript">
</script>
</head>
<body>
<s:form action="order_itemlist">
<input type="hidden" name="id" value="<s:property value="#order.id"/>"/>
<input type="hidden" name="GoodsName" value="${GoodsName}"/>
<input type="hidden" name="goodsCateId" value="${goodsCateId}"/>
</s:form> 
	<div id="Title_bar">
		<div id="Title_bar_Head">
			<div id="Title_Head"></div>
			<div id="Title">
				<!--页面标题-->
				<img border="0" width="13" height="13"
					src="${pageContext.request.contextPath}/style/images/title_arrow.gif" />
				单据详情
			</div>
			<div id="Title_End"></div>
		</div>
	</div>
	<!--查询处理-->
		<div id="QueryArea">
		<div style="height: 50px">
			<table>
				<tr>
					<td>单据号：</td>
					<td>
					<s:property value="#order.id"/> 
					&nbsp;
					</td>
					<td>单据对象：</td>
					<td><s:property value="#order.market.name" /> 
					<s:property	value="#order.supplier.name" />&nbsp;
					</td>
					<td>单据类型:</td>
					<td>
					<s:if test="#order.dealType==1">
					上架&nbsp;
					</s:if>
					<s:elseif test="#order.dealType==2">
					下架&nbsp;
					</s:elseif>
					<s:elseif test="#order.dealType==3">
					进货&nbsp;
					</s:elseif>
					<s:elseif test="#order.dealType==4">
						退货&nbsp;
					</s:elseif>
					</td>
					<td>单据时间：</td>
					<td><s:property value="#order.date" />&nbsp;</td>
					<td>单据总额：</td>
					<td><s:property value="#order.orderzonge" />&nbsp;</td>
				</tr>
			</table>
			</div>
		</div>
		<div id="QueryArea">
			<div style="height: 50px">
			<s:form action="order_itemlist">
			<input type="hidden" name="id" value="<s:property value="#order.id"/>"/>
					<table>
					<tr>
						<td>商品分类：</td>
						<td><s:select name="goodsCateId" id="goodsCateList"
								list="#goodsCateList" listKey="id" listValue="name"
								headerKey="0" headerValue="所有分类" onchange="queryGoodList();">
							</s:select>
						</td>
						<td>商品名模糊查询：</td>
						<td><input type="text" id="GoodsName" name="GoodsName"
							value="${GoodsName}"> </input></td>
						<td><s:a>
								<input type="IMAGE"
									src="${pageContext.request.contextPath}/style/blue/images/button/query.PNG" />
							</s:a></td>
					</tr>
				</table>
			</s:form>
		</div>
	</div>
			<!--    单据列表          -->
		<div id="MainArea">
		<table cellspacing="0" cellpadding="0" class="TableStyle">
			<!-- 表头-->
			<thead>
				<tr align=center valign=middle id=TableTitle>
					<td width="200">项号</td>
					<td>商品名</td>
					<td>商品分类</td>
					<td>商品单价</td>
					<td>商品数量</td>
				</tr>
			</thead>
			<!--显示数据列表-->
			<tbody id="TableData" class="dataContainer" >
				<s:iterator value="recordList" >
					<tr align="center" valign="middle" class="TableDetail1 template">
						<td>${id}</td>
						<td>${goods.name}</td>
						<td>${goods.goodsCate.name}</td>
						<td>${goods.price}</td>
						<td>${number}</td>	
					</tr>
				</s:iterator>

			</tbody>
		</table>
	</div>
   
	 <!-- 分页信息-->
	<%@ include  file="/WEB-INF/jsp/public/pageView.jspf"%>
</body>
</html>